//
//  ActorlistController.m
//  ProjectForCustomer
//
//  Created by 钟游 on 2019/8/28.
//  Copyright © 2019年 钟游. All rights reserved.
//

#import "ActorlistController.h"
#import "ActorListMainView.h"
#import "LoginViewModel.h"
#import "MovetypeListController.h"
@interface ActorlistController ()
@property(nonatomic,strong)ActorListMainView * mainView;
@property(nonatomic,strong)LoginViewModel * viewModel;
@end

@implementation ActorlistController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.title = @"筛选";
}
-(void)zy_getNewData{
    [self.viewModel.weiSubject sendNext:nil];
}
-(void)zy_addSubviews{
    self.mainView.frame = self.view.bounds;
    [self.view addSubview:self.mainView];
}
-(void)zy_bindViewModel{
    [[self.viewModel.qqSubject takeUntil:self.rac_willDeallocSignal]subscribeNext:^(id  _Nullable x) {
        MovetypeListController * actor =[[ MovetypeListController alloc]init];
        [self.navigationController pushViewController:actor animated:YES];
    }];
}
#pragma mark --lazy
-(ActorListMainView *)mainView{
    if (!_mainView) {
        _mainView=[[ActorListMainView alloc]initWithViewModel:self.viewModel];
    }
    return _mainView;
}
-(LoginViewModel *)viewModel{
    if (!_viewModel) {
        _viewModel=[[LoginViewModel alloc]init];
    }
    return _viewModel;
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
